package jvm.t1;

import java.util.ArrayList;
import java.util.List;

/**
 * Remarks: StringTable位置
 * Class name :Demo1_6
 * Date :2023/2/9 10:42
 * Author:杨俊源
 */
public class Demo1_6 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        int i = 0;
        try {
            for (int j = 0; j < 2600000;j++){
                list.add(String.valueOf(j).intern());
                i++;
            }
        }catch (Throwable e){
            e.printStackTrace();
        }finally {
            System.out.println(i);
        }
    }
}
